package com.otitan.la.forest.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.otitan.la.forest.system.dto.LogDTO;
import com.otitan.la.forest.system.entity.LogEntity;
import com.otitan.la.forest.system.vo.LogVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 日志表
 * 
 * @author jiacs
 * @email xxx
 * @date 2020-10-09 09:52:17
 */
@Mapper
public interface LogMapper extends BaseMapper<LogEntity> {

    List<LogVO> findPageLogData(@Param("log") LogDTO log, Page<LogVO> pagePlug);

    /**
    * 用户登入登出日志分页查询
    * @author Sunke
    * @param [log, pagePlug]
    * @return java.util.List<com.otitan.la.forest.system.vo.LogVO>
    * @exception
    * @date 2020/10/13 0013 10:45
    */
    List<LogVO> findPageUserData(@Param("log") LogDTO log, Page<LogVO> pagePlug);

}
